home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo.
- echo -- Installation for Fish Keys 3.0 --
- echo.
- set instdir=c:\fishkeys
- set batdir=c:
- if "%1"=="" goto gotdirs
- set instdir=%1
- if "%2"=="" goto gotdirs
- set batdir=%2
- :gotdirs
- echo Fish Keys will be installed in the directory %instdir%
- echo and the batch file to run Fish Keys will be put in %batdir%
- choice Is this OK
- if errorlevel == 2 goto bailout
- echo.
- echo installing...
- echo.
- echo Creating %instdir%
- mkdir %instdir%
- echo.
- echo Copying files.
- xcopy *.* %instdir%
- del %instdir%\install.bat
- echo.
- echo Creating batch file.
- echo @echo off > %batdir%\fishkeys.bat
- echo if not exist %instdir%\fishkeys.exe goto notfound >> %batdir%\fishkeys.bat
- echo cd %instdir% >> %batdir%\fishkeys.bat
- echo fishkeys.exe >> %batdir%\fishkeys.bat
- echo cd \ >> %batdir%\fishkeys.bat
- echo goto end >> %batdir%\fishkeys.bat
- echo :notfound >> %batdir%\fishkeys.bat
- echo echo. >> %batdir%\fishkeys.bat
- echo echo Can not find Fish Keys 3.0 >> %batdir%\fishkeys.bat
- echo echo. >> %batdir%\fishkeys.bat
- echo :end >> %batdir%\fishkeys.bat
- echo.
- echo Installation complete.
- goto end
- :bailout
- echo.
- echo To specify the installation directory and the batch file directory, type:
- echo install install_dir batch_file_dir (eg: install c:\games\fishkeys c:\dos)
- echo The batch file directory MUST already exist.
- :end
- set instdir=
- set batdir=
- echo.
-
-